package com.liyuan.help_e.model;

public class Question {
    private Integer id;
    private String title;
    private String content;
    private String tags;
    private String createdAt;
    private String modifiedAt;
    private User user;
    private Integer commentCount;
    private Integer readCount;
    private Integer praiseCount;
    public Question() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getTags() {
        return tags;
    }

    public void setTags(String tags) {
        this.tags = tags;
    }

    public String getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(String createdAt) {
        this.createdAt = createdAt;
    }

    public String getModifiedAt() {
        return modifiedAt;
    }

    public void setModifiedAt(String modifiedAt) {
        this.modifiedAt = modifiedAt;
    }

    public User getUser() {
        return user;
    }

    public void setUser(Integer userId) {
        user = new User();
        user.setId(userId);
    }

    public Integer getCommentCount() {
        return commentCount;
    }

    public void setCommentCount(Integer commentCount) {
        this.commentCount = commentCount;
    }

    public Integer getReadCount() {
        return readCount;
    }

    public void setReadCount(Integer readCount) {
        this.readCount = readCount;
    }

    public Integer getPraiseCount() {
        return praiseCount;
    }

    public void setPraiseCount(Integer praiseCount) {
        this.praiseCount = praiseCount;
    }

    public Question(String title, String content, String tags, String createdAt, String modifiedAt, User user, Integer commentCount, Integer readCount, Integer praiseCount) {
        this.title = title;
        this.content = content;
        this.tags = tags;
        this.createdAt = createdAt;
        this.modifiedAt = modifiedAt;
        this.user = user;
        this.commentCount = commentCount;
        this.readCount = readCount;
        this.praiseCount = praiseCount;
    }
}
